﻿using System.Collections.Generic;
using UnityEngine;

namespace Core.Res
{
    public class RefCnt
    {
        public int Count { get; private set; }

        public void Increase()
        {
            Count++;
        }

        public void Decrease()
        {
            Count--;
        }

        public void Clear()
        {
            Count = 0;
        }
    }

    public interface IAsset
    {
        string Name { get; }

        UnityEngine.Object Obj { get; }

        Stack<GameObject> Pool { get; }

        RefCnt Ref { get; }

    }
}
